package com.xxd.dfs.client;

/**
 * @author: XiaoDong.Xie
 * @create: 2020-09-07 10:34
 * @description:
 */
public class Host {
    private String hostname;
    private String ip;
    private Integer nioPort;

    public Host() {

    }

    public Host(String hostname, Integer nioPort) {
        this.hostname = hostname;
        this.nioPort = nioPort;
    }

    public String getHostname() {
        return hostname;
    }

    public void setHostname(String hostname) {
        this.hostname = hostname;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getNioPort() {
        return nioPort;
    }

    public void setNioPort(Integer nioPort) {
        this.nioPort = nioPort;
    }

    @Override
    public String toString() {
        return "Host{" +
                "hostname='" + hostname + '\'' +
                ", ip='" + ip + '\'' +
                ", nioPort=" + nioPort +
                '}';
    }
}
